<?php $parClass = "no-paralax"; ?>
<?php if($videourl) { ?>
<?php $parClass = "box-paralax"; ?>
<script type="text/javascript">
$(document).ready(function(){
	$("html.no-touch #custom_contentVideo<?php echo $module; ?>").mb_YTPlayer();
})
</script>
<?php } ?>
<?php if((($poster) && ($setting['position'] == 'content_top_fullwidth') && (!$videourl)) || (($poster) && ($setting['position'] == 'content_bottom_fullwidth') && (!$videourl))) { ?>
<?php $parClass = "box-paralax"; ?>
<style type="text/css">
html.no-touch #custom_content<?php echo $module; ?> {
	background:url("<?php echo $poster;?>") 50% 0 no-repeat fixed;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
	$('html.no-touch .box-custom_content').parallax("50%", 0.1, true);
})
</script>
<?php } ?>
<?php if (($setting['position'] == 'column_left') || ($setting['position'] == 'column_right') || ($setting['position'] == 'content_footer')){ ?>

<div class="box box-custom_content" id="custom_content<?php echo $module; ?>">

<?php if ($module_title){ ?>
  <div class="box-heading"><?php echo $module_title; ?></div>
<?php } ?>
<div class="box-content">
<?php echo $message; ?>
</div>
</div>

<?php } else { ?>
<div class="box box-custom_content <?php echo $parClass; ?>" id="custom_content<?php echo $module; ?>">
<div class="bg">
<?php if((($videourl) && ($setting['position'] == 'content_top_fullwidth')) || (($videourl) && ($setting['position'] == 'content_bottom_fullwidth'))) { ?>
<div class="pattern"></div>
<a id="custom_contentVideo<?php echo $module; ?>" class="domplayer" data-property="{videoURL:'<?php echo $videourl; ?>',containment:'#custom_content<?php echo $module; ?> .bg', showControls:false, autoPlay:true, loop:true, mute:true, startAt:<?php echo $start; ?>, opacity:1, addRaster:true, quality:'default'}">My video</a>
<?php } ?>
</div>
<div class="inner">
<?php if ($module_title){ ?>
  <h2 class="heading_title"><span><?php echo $module_title; ?></span></h2>
  <div class="clear"></div>
<?php } ?>
<div class="box-content">
<?php echo $message; ?>
</div>
<div class="clear"></div>
</div>
</div>
<?php if($back == '1') { ?>
<style type="text/css">
#custom_content<?php echo $module; ?> .box-content {
	background:rgba(255,255,255,0.9);
}
</style>
<?php } ?>
<?php } ?>